Report generated on 26-Jun-2019 at 20:10:38 by pytest-html v1.20.0
| Base URL | |
| Capabilities | {} |
| Driver | Chrome |
| JAVA_HOME | C:\Program Files\Java\jdk1.8.0_191 |
| Packages | {'pytest': '4.4.1', 'py': '1.8.0', 'pluggy': '0.9.0'} |
| Platform | Windows-10-10.0.10586-SP0 |
| Plugins | {'variables': '1.7.1', 'selenium': '1.16.0', 'metadata': '1.8.0', 'html': '1.20.0', 'base-url': '1.4.1'} |
| Python | 3.6.0 |
23 tests ran in 759.50 seconds.
(Un)check the boxes to filter the results.
17 passed, 0 skipped, 6 failed, 0 errors, 0 expected failures, 0 unexpected passes| Result | Test | Duration | Links |
|---|---|---|---|
| No results found. Try to check the filters | |||
| Failed | test_productdetail.py::test_02allowsale_bottom | 6.15 | Driver Log URL HTML Browser Log Driver Log |
|
selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="71f5b81e07a145df9c8b9ade200d27f6")> @pytest.mark.test_b2ch5_1 def test_02allowsale_bottom(selenium): '''可售处方药底栏展示''' #@author: liuzhenzhou p = ProductPage(selenium) productdetail = ProductDetail(selenium) addcart_time = p.in_addcart_time_range("110000-120000") #判断当前时间是不可加车时间段 item_bottom = productdetail.product_detail_buttons(prodid=50077555) #获取底栏按钮 print("底栏按钮",item_bottom) if addcart_time == False: > assert item_bottom == {'收藏': True, '购物车': True, '登记购买': True},"可售rx 商详底栏按钮异常" E AssertionError: 可售rx 商详底栏按钮异常 E assert {'我想买药': True...e, '缺货': True} == {'收藏': True, '..., '购物车': True} E Omitting 1 identical items, use -vv to show E Left contains more items: E {'我想买药': True, '缺货': True} E Right contains more items: E {'登记购买': True, '购物车': True} E Use -v to get the full diff test_productdetail.py:39: AssertionError ---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 不在范围 start 110000 endtime: 120000 当前时间 19:58:20 商品编号: 50077555 1药网_[UI自动化专用-昆山无货]前列通片5盒优惠 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} ------------------------------- pytest-selenium -------------------------------- Driver log: C:\Users\liuzhenzhou\AppData\Local\Temp\pytest-of-liuzhenzhou\pytest-423\test_02allowsale_bottom0\driver.log URL: https://m.111.com.cn/yyw/wap/item/index.html#/item/50077555 | |||
| Failed | test_productdetail.py::test_04local_saleout_rx_bottom | 17.52 | Driver Log URL HTML Browser Log Driver Log |
|
selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="1f7e674d901898bdc79ac519ca017cbe")> @pytest.mark.test_b2ch5_1 def test_04local_saleout_rx_bottom(selenium): '''自营处方药 - 不在加车时间段内 ;本地仓无货其他仓有货,本地仓底栏展示''' #@author: liuzhenzhou u = UserCenter(selenium) u.go_to_user_page () #进入个人中心 u.close_guide () #如果有引导消除引导 sleep(3) u.switch_loaction_shanghai() #切换定位到上海 productdetail = ProductDetail(selenium) p = ProductPage(selenium) addcart_time = p.in_addcart_time_range("110000-120000") #判断当前时间是不可加车时间段 item_bottom = productdetail.product_detail_buttons(prodid=974345) #获取底栏按钮 print("底栏按钮",item_bottom) if addcart_time == False: > assert item_bottom['咨询药师开药']==True,"商详处方药未在加车时间段本地仓无货未显示咨询药师开药" E KeyError: '咨询药师开药' test_productdetail.py:72: KeyError ---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 不在范围 start 110000 endtime: 120000 当前时间 19:59:01 商品编号: 974345 1药网_[ui自动化本地无货测试专用]北大维信 血脂康胶囊 0.3g*12片 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} ------------------------------- pytest-selenium -------------------------------- Driver log: C:\Users\liuzhenzhou\AppData\Local\Temp\pytest-of-liuzhenzhou\pytest-423\test_04local_saleout_rx_bottom0\driver.log URL: https://m.111.com.cn/yyw/wap/item/index.html#/item/974345 | |||
| Failed | test_productdetail.py::test_05notloaclarea_saleout_rx_bottom | 17.33 | Driver Log URL HTML Browser Log Driver Log |
|
selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="8df8e79360c51f10586a99d307339960")> @pytest.mark.test_b2ch5_1 def test_05notloaclarea_saleout_rx_bottom(selenium): '''自营处方药本地仓无货其他仓有货,-且不在可加车时间段,其他仓定位底栏展示''' #@author: liuzhenzhou u = UserCenter(selenium) u.go_to_user_page () #进入个人中心 u.close_guide () #如果有引导消除引导 sleep(3) u.switch_loaction_guangdong() #切换定位到广东 productdetail = ProductDetail(selenium) p = ProductPage(selenium) addcart_time = p.in_addcart_time_range("110000-120000") #判断当前时间是不可加车时间段 item_bottom = productdetail.product_detail_buttons(prodid=974345) #获取底栏按钮 print("底栏按钮",item_bottom) if addcart_time == False: > assert item_bottom['登记购买']==True,"商详处方药未在加车时间段有货仓无货未显示登记购买" E KeyError: '登记购买' test_productdetail.py:98: KeyError ---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 不在范围 start 110000 endtime: 120000 当前时间 19:59:25 商品编号: 974345 1药网 底栏按钮: 底栏按钮 {'收藏': False, '购物车 99+': False} ------------------------------- pytest-selenium -------------------------------- Driver log: C:\Users\liuzhenzhou\AppData\Local\Temp\pytest-of-liuzhenzhou\pytest-423\test_05notloaclarea_saleout_rx0\driver.log URL: https://m.111.com.cn/yyw/wap/item/index.html#/item/974345 | |||
| Failed | test_productdetail.py::test_07danage_prod_bottom | 6.17 | Driver Log URL HTML Browser Log Driver Log |
|
selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="e5c15135e41b9b35d1375ae3ffa3a19c")> @pytest.mark.test_b2ch5_1 def test_07danage_prod_bottom(selenium): '''高危品详情页底栏显示''' #@author: liuzhenzhou productdetail=ProductDetail(selenium) item_bottom = productdetail.product_detail_buttons(prodid=974752) print("底栏按钮",item_bottom) > assert item_bottom == {'收藏': True, '购物车': True, '咨询医生开药': True},"高危品底栏按钮不正确" E AssertionError: 高危品底栏按钮不正确 E assert {'咨询医生开药': Tr...e, '收藏': True} == {'咨询医生开药': Tru..., '购物车': True} E Omitting 2 identical items, use -vv to show E Left contains more items: E {'我想买药': True} E Right contains more items: E {'购物车': True} E Use -v to get the full diff test_productdetail.py:202: AssertionError ---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 974752 1药网_[UI自动化专用]海普 核酪口服溶液 10ml*6支 底栏按钮: 收藏 我想买药 咨询医生开药 底栏按钮 {'收藏': True, '我想买药': True, '咨询医生开药': True} ------------------------------- pytest-selenium -------------------------------- Driver log: C:\Users\liuzhenzhou\AppData\Local\Temp\pytest-of-liuzhenzhou\pytest-423\test_07danage_prod_bottom0\driver.log URL: https://m.111.com.cn/yyw/wap/item/index.html#/item/974752 | |||
| Failed | test_productdetail.py::test_11mp_nomalprod_bottom | 65.97 | Driver Log URL HTML Browser Log Driver Log |
|
selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="4286515aaefb67432b9a00ff1afce65f")> @pytest.mark.test_b2ch5_1 def test_11mp_nomalprod_bottom(selenium): '''mp标品 有货,详情页底栏显示 ''' #@author: liuzhenzhou productdetail=ProductDetail(selenium) item_bottom = productdetail.prod_bottom(itemid=51063072) print("底栏按钮",item_bottom) > assert item_bottom['店铺 收藏 购物车 加入购物车']==True,"底栏按钮不正确" E KeyError: '店铺 收藏 购物车 加入购物车' test_productdetail.py:246: KeyError ---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 51063072 1药网_搜索 底栏按钮: 底栏按钮 {} ------------------------------- pytest-selenium -------------------------------- Driver log: C:\Users\liuzhenzhou\AppData\Local\Temp\pytest-of-liuzhenzhou\pytest-423\test_11mp_nomalprod_bottom0\driver.log URL: https://m.111.com.cn/yyw/wap/searchList/index.html#/searchList?searchWord=JM-9995 | |||
| Failed | test_productdetail.py::test_18taocang_rx_sellout_bottom_notinaddcarttime | 17.44 | Driver Log URL HTML Browser Log Driver Log |
|
selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="4224511d263ccab95b5ba2ee918fec8c")> @pytest.mark.test_b2ch5_1 def test_18taocang_rx_sellout_bottom_notinaddcarttime(selenium): '''自营处方药套餐本地仓无货其他仓有货,-且不在可加车时间段,本地及其他仓定位底栏展示 -h5端经产品确认本地仓无货即显示无货-h5取不到其他仓库存状态''' u = UserCenter(selenium) u.go_to_user_page () #进入个人中心 u.close_guide () #如果有引导消除引导 sleep(3) u.switch_loaction_shanghai() #切换定位到上海 productdetail=ProductDetail(selenium) p = ProductPage(selenium) addcart_time = p.in_addcart_time_range("110000-120000") #判断当前时间是不可加车时间段 item_bottom = productdetail.product_detail_buttons(prodid=50077555) #获取底栏按钮 print("底栏按钮",item_bottom) if addcart_time == False: #assert item_bottom['咨询药师开药']==True,"商详套餐处方药不在加车时间段本地仓无货未显示咨询药师开药" assert item_bottom['缺货']==True,"商详套餐处方药不在加车时间段本地仓无货未显示缺货" p = ProductPage(selenium) float_window = p.consult_float_window() #查找咨询药师浮窗 print("咨询浮窗",float_window) > assert len(float_window) == 0,"咨询药师浮窗展示浮窗" E AssertionError: 咨询药师浮窗展示浮窗 E assert 1 == 0 E + where 1 = len([<selenium.webdriver.remote.webelement.WebElement (session="4224511d263ccab95b5ba2ee918fec8c", element="0.7133866265032132-4")>]) test_productdetail.py:406: AssertionError ---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 不在范围 start 110000 endtime: 120000 当前时间 20:07:10 商品编号: 50077555 1药网_[UI自动化专用-昆山无货]前列通片5盒优惠 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} 咨询药师浮窗 咨询浮窗 [<selenium.webdriver.remote.webelement.WebElement (session="4224511d263ccab95b5ba2ee918fec8c", element="0.7133866265032132-4")>] ------------------------------- pytest-selenium -------------------------------- Driver log: C:\Users\liuzhenzhou\AppData\Local\Temp\pytest-of-liuzhenzhou\pytest-423\test_18taocang_rx_sellout_bott0\driver.log URL: https://m.111.com.cn/yyw/wap/item/index.html#/item/50077555 | |||
| Passed | test_productdetail.py::test_01allowsale_rx | 11.59 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 进入商详页 当前链接: https://m.111.com.cn/yyw/wap/item/index.html#/item/974737 咨询药师浮窗 咨询浮窗 [<selenium.webdriver.remote.webelement.WebElement (session="0ba8ca18a6cd2baceedfd5924ff8beef", element="0.649564083475646-1")>] IM 结束会话 结束会话按钮 [<selenium.webdriver.remote.webelement.WebElement (session="0ba8ca18a6cd2baceedfd5924ff8beef", element="0.23506496696730883-1")>] | |||
| Passed | test_productdetail.py::test_03nosale_bottom | 9.52 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 991571 1药网_[自动化专用ios]泛捷复 头孢拉定胶囊 0.25g*24粒 支气管炎 底栏按钮: 收藏 购物车 咨询药师开药 底栏按钮 {'收藏': True, '购物车': True, '咨询药师开药': True} IM 结束会话 进入到IM [<selenium.webdriver.remote.webelement.WebElement (session="7625b0c939f89e2a3748d53ab1aed297", element="0.6867658598599504-1")>] | |||
| Passed | test_productdetail.py::test_06sigle_rx_sellout_bottom | 106.11 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 不在范围 start 110000 endtime: 120000 当前时间 19:59:49 商品编号: 974345 1药网 底栏按钮: 底栏按钮 {'收藏': False, '购物车 99+': False} 查找元素超时:('css selector', '.guide_btn', '引导-下一步按钮') 没有引导界面 不在范围 start 110000 endtime: 120000 当前时间 20:01:04 商品编号: 974345 1药网_[ui自动化本地无货测试专用]北大维信 血脂康胶囊 0.3g*12片 底栏按钮: 收藏 我想买药 233333 底栏按钮 {'收藏': True, '我想买药': True, '233333': True} 不在范围 start 110000 endtime: 120000 当前时间 20:01:18 商品编号: 974345 1药网_[ui自动化本地无货测试专用]北大维信 血脂康胶囊 0.3g*12片 底栏按钮: 收藏 我想买药 233333 底栏按钮 {'收藏': True, '我想买药': True, '233333': True} | |||
| Passed | test_productdetail.py::test_08danage_prod_limmit | 4.05 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 进入商详页 当前链接: https://m.111.com.cn/yyw/wap/item/index.html#/item/974752 限购数量 限购50件 限购数量 限购50件 | |||
| Passed | test_productdetail.py::test_09rx_prod_limmit | 3.95 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 进入商详页 当前链接: https://m.111.com.cn/yyw/wap/item/index.html#/item/974883 限购数量 限购10件 限购数量 限购10件 | |||
| Passed | test_productdetail.py::test_10nologin_sendto | 7.06 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 进入商详页 当前链接: https://m.111.com.cn/yyw/wap/item/index.html#/item/971744 送到区域弹层 <selenium.webdriver.remote.webelement.WebElement (session="fa5718be1e41dd4d829393bc8a26de87", element="0.6717474394713925-1")> 配送至弹层标题 配送至 | |||
| Passed | test_productdetail.py::test_12mp_nomalprod_sellout_bottom | 6.02 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 51063084 1药网_易健氏(EKS)人体电子健康秤 8888 底栏按钮: 店铺 收藏 购物车 缺货 底栏按钮 {'店铺 收藏 购物车 缺货': True} | |||
| Passed | test_productdetail.py::test_13mp_rx_bottom | 6.08 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 51063078 1药网_畅沛 酒石酸伐尼克兰片 1mg*28片 底栏按钮: 店铺 收藏 需求清单 提交需求 底栏按钮 {'店铺 收藏 需求清单 提交需求': True} | |||
| Passed | test_productdetail.py::test_14mp_rx_sellout_bottom | 6.04 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 51063073 1药网_[ios自动化专用]东药 丙戊酸钠片 0.2g*100片 底栏按钮: 店铺 收藏 需求清单 缺货 底栏按钮 {'店铺 收藏 需求清单 缺货': True} | |||
| Passed | test_productdetail.py::test_15hwg_bottom | 6.21 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 50260811 1药网_【海外购】美国安利纽崔莱 蛋白质粉 - 450g 底栏按钮: 店铺 收藏 购物车 加入购物车 底栏按钮 {'店铺 收藏 购物车 加入购物车': True} | |||
| Passed | test_productdetail.py::test_16mp_freight | 25.47 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 进入商详页 当前链接: https://m.111.com.cn/yyw/wap/item/index.html#/item/51063084 mp 运费 (快递:0.01元) mp标品 运费 (快递:0.01元) 进入商详页 当前链接: https://m.111.com.cn/yyw/wap/item/index.html#/item/50306503 mp 运费 (快递:0.01元) mp rx 运费 (快递:0.01元) 进入商详页 当前链接: https://m.111.com.cn/yyw/wap/item/index.html#/item/50260811 mp 运费 (快递:10.00元) 海外购 运费 (快递:10.00元) | |||
| Passed | test_productdetail.py::test_17taocang_rx_sellout_bottom_inaddcarttime | 107.64 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 不在范围 start 110000 endtime: 120000 当前时间 20:05:17 商品编号: 50077555 1药网_[UI自动化专用-昆山无货]前列通片5盒优惠 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} 查找元素超时:('css selector', '.guide_btn', '引导-下一步按钮') 没有引导界面 不在范围 start 110000 endtime: 120000 当前时间 20:06:33 商品编号: 50077555 1药网_[UI自动化专用-昆山无货]前列通片5盒优惠 底栏按钮: 收藏 我想买药 233333 底栏按钮 {'收藏': True, '我想买药': True, '233333': True} 不在范围 start 110000 endtime: 120000 当前时间 20:06:47 商品编号: 50077555 1药网_[UI自动化专用-昆山无货]前列通片5盒优惠 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} | |||
| Passed | test_productdetail.py::test_19rx_sellout_bottom_ | 106.52 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 10134789 1药网_[h5-UI自动化专用-三仓缺货]新光 伸筋丹胶囊 0.15g*60粒 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} 咨询药师浮窗 咨询浮窗 [<selenium.webdriver.remote.webelement.WebElement (session="ef88a74bd48dceee014ea2227d579cef", element="0.05872735944921059-4")>] 查找元素超时:('css selector', '.guide_btn', '引导-下一步按钮') 没有引导界面 商品编号: 10134789 1药网_[h5-UI自动化专用-三仓缺货]新光 伸筋丹胶囊 0.15g*60粒 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} 咨询药师浮窗 咨询浮窗 [<selenium.webdriver.remote.webelement.WebElement (session="ef88a74bd48dceee014ea2227d579cef", element="0.0261342349586684-4")>] 商品编号: 10134789 1药网_[h5-UI自动化专用-三仓缺货]新光 伸筋丹胶囊 0.15g*60粒 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} 咨询药师浮窗 咨询浮窗 [<selenium.webdriver.remote.webelement.WebElement (session="ef88a74bd48dceee014ea2227d579cef", element="0.055405589868362304-4")>] | |||
| Passed | test_productdetail.py::test_20dange_sellout_bottom_ | 17.48 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 974475 1药网_[h5-ui自动化高危品缺货测试专用]西维尔 硒酵母片 50ug*50片 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} 商详底栏 dict_keys(['收藏', '我想买药', '缺货']) | |||
| Passed | test_productdetail.py::test_21rx_nograde_prod_limmit | 4.01 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 进入商详页 当前链接: https://m.111.com.cn/yyw/wap/item/index.html#/item/10134789 限购数量 限购15件 限购数量 限购15件 | |||
| Passed | test_productdetail.py::test_22dange_taocang_sellout_bottom_ | 17.29 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 商品编号: 500931877 1药网_[h5-ui 自动化专用]-高危套餐无货 底栏按钮: 收藏 我想买药 缺货 底栏按钮 {'收藏': True, '我想买药': True, '缺货': True} 商详底栏 dict_keys(['收藏', '我想买药', '缺货']) | |||
| Passed | test_productdetail.py::test_23liaochengzhuang_pop | 22.68 | |
|
---------------------------- Captured stdout setup ----------------------------- 脚本运行的浏览器: chrome ----------------------------- Captured stdout call ----------------------------- 进入商详页 当前链接: https://m.111.com.cn/yyw/wap/item/index.html#/item/975040 弹窗style: True 弹窗style: display: none; 件数: 9件 单件价格: 单价¥36.00 count价格: 合计: ¥324.00 节省价格: 省18.00元 合计栏: 合计:¥324.00 原价:¥342.00 合计金额,原价: {'合计:¥324.00': True, '原价:¥342.00': True} 合计栏: 合计:¥648.00 原价:¥684.00 合计金额,原价: {'合计:¥648.00': True, '原价:¥684.00': True} 疗程装加车 进入购物车 购物车中疗程装商品: 泰尔丝疗程装 | |||